<?php
    /**
     * Created by PhpStorm.
     * User: Feixiang
     * Date: 2017/8/7
     * Time: 13:41
     */
    
    
    namespace Common\Model;
    use Think\Model;
    
/*    class AdminModel extends Model
    {
       
        public function getAdminByUsername($username){
            return $this->where('username="'.$username.'"')->find();
        }
    }*/


  class AdminModel extends Model
    {
        private $_db ='';
//        public function __construct()
//        {
//            $this ->_db =M('admin');
//        }
        public function getAdminByUsername($username){
            $ret = $this->where('username="'.$username.'"')->find();
            return $ret;
        }
    
       /* public function ok()
        {
            return $this->select();
        }*/
    }